<?php

require_once './application/controllers/ControllerBase.php';
require_once './application/core/CoreBase.php';
require_once './application/core/Visualisation/indexCore.php';
require_once './application/core/Visualisation/lanceRecherche.php';
require_once './application/core/Visualisation/valideIp.php';

///
/// Module de visualisation
///
class VisualisationController extends ControllerBase
{

    // Action par defaut
    function indexAction()
    {
        $this->verifConnexion();
        $this->renderTabControl();
        $core = new IndexCore($this);
        $core->Execute();
    }

    function lancerechercheAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $t = new lanceRechercheCore($this);
        $t->lanceRecherche();
    }

    function lancerechercheresultAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $t = new lanceRechercheCore($this);
        $t->lanceRechercheResult();
    }

    function stoprechercheAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $t = new lanceRechercheCore($this);
        $t->stopRecherche();
    }

    function valideipAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $t = new valideIpCore($this);
        $t->valideIp();
    }

    function valideipresultAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $t = new valideIpCore($this);
        $t->valideIpResult();
    }

}
